<?php
<object class="Update_Trouble" name="Update_Trouble" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Update Trouble</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">240</property>
  <property name="IsMaster">0</property>
  <property name="Name">Update_Trouble</property>
  <property name="UseAjax">1</property>
  <property name="Width">536</property>
  <property name="OnCreate">Update_TroubleCreate</property>
  <object class="Image" name="Image1" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Height">28</property>
    <property name="ImageSource">image/edit_trouble.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image1</property>
    <property name="Top">16</property>
    <property name="Width">536</property>
  </object>
  <object class="Label" name="Label93" >
    <property name="Caption">Start Date:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">32</property>
    <property name="Name">Label93</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">66</property>
    <property name="Width">61</property>
  </object>
  <object class="Label" name="Label85" >
    <property name="Caption">End Date:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">269</property>
    <property name="Name">Label85</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">66</property>
    <property name="Width">56</property>
  </object>
  <object class="Label" name="Label86" >
    <property name="Caption">Trouble:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">45</property>
    <property name="Name">Label86</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">98</property>
    <property name="Width">48</property>
  </object>
  <object class="DateTimePicker" name="dpStart" >
    <property name="Caption">dpStDate</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">98</property>
    <property name="Name">dpStart</property>
    <property name="ParentFont">0</property>
    <property name="ShowsTime">0</property>
    <property name="Top">62</property>
    <property name="Width">150</property>
  </object>
  <object class="DateTimePicker" name="dpEnd" >
    <property name="Caption">dpEnd</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">330</property>
    <property name="Name">dpEnd</property>
    <property name="ParentFont">0</property>
    <property name="ShowsTime">0</property>
    <property name="Top">62</property>
    <property name="Width">150</property>
  </object>
  <object class="ComboBox" name="cmbTrouble" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">98</property>
    <property name="Name">cmbTrouble</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">94</property>
    <property name="Width">150</property>
    <property name="jsOnChange">cmbTroubleJSChange</property>
  </object>
  <object class="Label" name="Label1" >
    <property name="Caption">Remedy:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">273</property>
    <property name="Name">Label1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">98</property>
    <property name="Width">49</property>
  </object>
  <object class="ComboBox" name="cmbRemedy" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">330</property>
    <property name="Name">cmbRemedy</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">3</property>
    <property name="Top">94</property>
    <property name="Width">150</property>
  </object>
  <object class="ComboBox" name="cmbServicedBy" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">98</property>
    <property name="Name">cmbServicedBy</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">4</property>
    <property name="Top">126</property>
    <property name="Width">150</property>
  </object>
  <object class="Button" name="btnCancel" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Cancel</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">103</property>
    <property name="Name">btnCancel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">6</property>
    <property name="Top">165</property>
    <property name="Width">75</property>
    <property name="jsOnClick">btnCancelJSClick</property>
  </object>
  <object class="Button" name="btnUpdate" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">Update</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">23</property>
    <property name="Left">23</property>
    <property name="Name">btnUpdate</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">165</property>
    <property name="Width">75</property>
    <property name="OnClick">btnUpdateClick</property>
  </object>
  <object class="HiddenField" name="hiddenId" >
    <property name="Height">18</property>
    <property name="Left">269</property>
    <property name="Name">hiddenId</property>
    <property name="Top">130</property>
    <property name="Width">100</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript1" >
    <property name="Code"><![CDATA[var xmlhttp
function troubleRemedy()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{  
alert (&quot;Your browser does not support AJAX!&quot;);  
return;  
}
var trouble = document.getElementById('cmbTrouble').value;
var url=&quot;troubleRemedy.php&quot;;
url=url+&quot;?trouble=&quot;+trouble;
xmlhttp.onreadystatechange=stateChangedMake;
xmlhttp.open(&quot;GET&quot;,url,true);
xmlhttp.send(null);
}
function stateChangedMake()
{
if (xmlhttp.readyState==4)  
{  
var my_array = eval(xmlhttp.responseText);  
var cmbObj = document.getElementById('cmbRemedy')  
cmbObj.length = 0;  
for(var val in my_array)  
{    
var val_type = my_array[val];    
var x = document.createElement('option');    
if(val_type.length&gt;1)    
{    
x.text = val_type;    
x.value = val_type;    
try    
{    
cmbObj.add(x,null); 
// standards compliant    
}    
catch(ex)    
{    
cmbObj.add(x); // IE only    
}    
}  
}  
}
}
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)  
{  
return new XMLHttpRequest();  
}
if (window.ActiveXObject)  
{  
return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);  
}
return null;
}]]></property>
    <property name="Height">20</property>
    <property name="Left">269</property>
    <property name="Name">JTJavaScript1</property>
    <property name="Top">165</property>
    <property name="Width">180</property>
  </object>
  <object class="Button" name="btnShowType" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add vehicle type/stye</property>
    <property name="Left">248</property>
    <property name="Name">btnShowType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">2</property>
    <property name="Top">94</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowTypeJSClick</property>
  </object>
  <object class="Label" name="Label2" >
    <property name="Caption">Serviced by:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">25</property>
    <property name="Name">Label2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">130</property>
    <property name="Width">70</property>
  </object>
</object>
?>
